import { createSSRApp } from 'vue'
import App from './App.vue'
import { createPinia } from 'pinia'
import uniIcons from "@/components/common/uni-icons/uni-icons.vue"
import tabBar from "@/components/business/tabBar/tabBar.vue"
import pullDownRefresh from '@/components/common/pull_down_refresh/pull-down-refresh.vue'
import load from '@/components/common/load/load.vue'
const pina = createPinia()

export function createApp() {
  const app = createSSRApp(App)
  app.component("tabBar",tabBar)
  app.component("uniIcons",uniIcons)
  app.component("load",load)
  app.component("pullDownRefresh",pullDownRefresh)
  app.use(pina)
  return {
    app,
  }
}
